package io.xxx.omni.oss.custom

import com.google.gson.JsonObject
import io.xxx.omni.oss.domain.Document
import io.xxx.omni.oss.domain.DocumentType
import java.time.LocalDateTime

@Suppress("unused")
class JdTradeSynchronizer : JdSynchronizer() {

    override val documentType = DocumentType.TRADE

    override val path = "/jd/trades/page"

    override fun buildRequest(
        startTime: LocalDateTime,
        endTime: LocalDateTime,
        parameter: Any?,
        pageNo: Int
    ): Pair<String, Map<String, Any>> {
        return "" to mapOf(
            "startTime" to startTime,
            "endTime" to endTime,
            "pageSize" to 100,
            "pageNo" to pageNo,
            "mallId" to parameter!!
        )
    }

    override fun buildDocuments(context: Context, response: JsonObject): List<Document> {
        return emptyList()
    }
}